package com.bai.ad.service;

import com.bai.ad.entity.AdPlan;
import com.bai.ad.vo.AdPlanGetRequest;
import com.bai.ad.vo.AdPlanRequest;
import com.bai.ad.vo.AdPlanResponse;
import com.bao.ad.exception.AdException;

import java.util.List;

/**
 * ClassName IAdPlanService
 *
 * @author Bai
 * @version 1.0
 * @date 2019/2/19 0019 下午 22:32
 **/
public interface IAdPlanService {

    /**
     * <h2>创建推广计划</h2>
     */
    AdPlanResponse createAdPlan(AdPlanRequest request) throws AdException;

    /**
     * <h2>获取推广计划</h2>
     */
    List<AdPlan> getAdPlanByIds(AdPlanGetRequest request) throws AdException;

    /**
     * <h2>更新推广计划</h2>
     */
    AdPlanResponse updateAdPlan(AdPlanRequest request) throws AdException;

    /**
     * <h2>删除推广计划</h2>
     */
    void deleteAdplan(AdPlanRequest request) throws AdException;
}
